package com.tledu.ssm.dao;

import com.tledu.ssm.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author cyrus
 */
public interface UserDao {

    /**
     * 查询详情
     *
     * @param id
     * @return
     */
    User selectById(Integer id);

    User selectByUserName(@Param("username") String username);


    List<User> list();

}
